Send feedback on this topic.
Teradata.Client.Provider
Read(Char[],Int32,Int32) Method



Teradata.Client.Provider Namespace > TdClob Class > Read Method : Read(Char[],Int32,Int32) Method
Character array to read data into.
The location within the buffer to read data into.
Number of characters to read into the buffer.
Reads data into the application provided buffer and advances the current position of the object.
Syntax
'Declaration
 
Public Overloads Function Read( _
   ByVal buffer() As Char, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
'Usage
 
Dim instance As TdClob
Dim buffer() As Char
Dim offset As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.Read(buffer, offset, count)
public int Read( 
   char[] buffer,
   int offset,
   int count
)
public:
int Read( 
   array<char>^ buffer,
   int offset,
   int count
) 

Parameters

buffer
Character array to read data into.
offset
The location within the buffer to read data into.
count
Number of characters to read into the buffer.

Return Value

Returns the number of characters read from the Advanced SQL Engine and written into the buffer. The number will be equal or less than count.
Exceptions
ExceptionDescription
buffer is null.

count or offset is negative, or the sum of offset and count is larger than the buffer length.

The TdClob is null or TdConnection is closed.
The TdClob is closed / disposed.
The Advanced SQL Engine returned an error, or the .NET Data Provider for Teradata detected an error.
Remarks
The .NET Data Provider for Teradata reads the CLOB from the Advanced SQL Engine and transfers the data read into the application provided buffer.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdClob Class
TdClob Members
Overload List